<?php
namespace Mobile\Controller;
use Think\Controller;
use Common\Model\Movie;
class CommentController extends BaseController {
    public function index(){
        $oid=$_GET['oid'];
        $mid=$_GET['meid'];
        $movie_id=$_GET['movie_id'];
        $this->assign('oid',$oid);
        $this->assign('mid',$mid);
        $this->assign('movie_id',$movie_id);
        $this->display();
    }

    public function add(){
       $_POST['created_at']=time();
      $model=M('comment')->add($_POST);
        if($model){
            echo '感谢您的评论';
        }
    }




}